package com.dong.policy.config;

import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

import java.lang.reflect.Method;

/**
 * @author zhaodongchao
 * @date 2020/11/17 16:17
 */

public class MyAsyncUncaughtExceptionHandler implements AsyncUncaughtExceptionHandler {
    @Override
    public void handleUncaughtException(Throwable throwable, Method method, Object... objects) {
        System.out.println("不好啦，发生异常了："+throwable.getMessage());
    }
}
